package com.example.hotel.ease.ex;

public class ServiceException extends RuntimeException{

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public ServiceException(ServiceCode serviceCode, String message) {
        super(message);
        this.code = serviceCode.getCode();
    }

}
